import gradio as gr

print(gr.__version__)
def greet(name):
    #return "Hello, " + name + "!" * int(intensity)
    return "Hello, " + name + "!"

demo = gr.Interface(
    #ui
    fn=greet,
    #文本
   # inputs=["text", "slider"],
    inputs=gr.Textbox(lines=2, placeholder="这里输入名字..."),
    outputs=["text"],
)

demo.launch()


